gridview: Don't assert on a condition that can happen
authorMatthias Clasen <mclasen@redhat.com>
Sat, 20 Jun 2020 16:11:59 +0000 (12:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 20 Jun 2020 16:11:59 +0000 (12:11 -0400)
commit2842030e59692e7e943c6db246485711e02e3883
treec2d4243c426009d65f8449d9f5fc3ffafdf20024
parent7c2d21892fca112cbb4c1744460adff5f3661571
gridview: Don't assert on a condition that can happen

We are currently not robust against model changes or
widget invalidations, so we can actually end up in
situations where we run out of items here. Handle
the failure a bit more gracefully, by returning NULL.

This is good enough to make scrolling work okish most
of the time. We still need a proper fix to handle
other situations.
gtk/gtkgridview.c